/* */


function parseTemplate(tpl, replace)
{
	var result = tpl;
	for (v in replace) {
		//var re = new RegExp("%" + v + "%", "g");
		result = result.replace("%" + v + "%", replace[v]);
	}

	return result;
}